package com.qf.shoppingorder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("orders")
public class Order implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("order_number")
    private String orderNumber;
    private Integer productId;
    private Integer userId;
    private String address;
    private String status;
    private String createTime;
    private String payTime;
    @TableField("expiration_time")
    private Long expirationTime;
    private String brand;
    private Integer productQuantity;
    private BigDecimal amount;
}
